home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST9-19.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  322b  |  19 lines

  1. ;
  2. ; *** Listing 9-19 ***
  3. ;
  4. ; Times the performance of SUB with a register as the
  5. ; destination operand and memory as the source operand.
  6. ;
  7.     jmp    Skip
  8. ;
  9. Dest    db    0
  10. ;
  11. Skip:
  12.     call    ZTimerOn
  13.     rept    1000
  14.     sub    al,[Dest]    ;subtract [Dest] from AL
  15.                 ; Only 1 memory access
  16.                 ; is performed
  17.     endm
  18.     call    ZTimerOff
  19.